package cn.coderliu.mapper;


import org.apache.ibatis.annotations.Update;

public interface ProductMapper {

    @Update("UPDATE t_product set num = num + #{count} where id = 1")
    void add(Integer count);

    @Update("UPDATE t_product set num = num - #{count} where id = 1")
    void reduce(Integer count);
}
